package com.ppx.life.mapping;

import com.ppx.life.dao.User;
import com.ppx.life.dao.UserExample;
import java.util.List;
import java.util.Map;

import com.ppx.life.dao.vo.DataObject;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    int countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    DataObject selectBySerialNum(String serialNum);

    DataObject selectDataObjectById(Integer id);

    Integer selectIdBySerialNum(String serialNum);

    int updateAccessToken(@Param("token")String token,@Param("id")Integer id);


}